package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.GreetingCardsRecordCreateValidate;
import com.mdd.admin.validate.GreetingCardsRecordUpdateValidate;
import com.mdd.admin.validate.GreetingCardsRecordSearchValidate;
import com.mdd.admin.vo.GreetingCardsRecordListedVo;
import com.mdd.admin.vo.GreetingCardsRecordDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 赠送贺卡记录服务接口类
 * @author DEREK
 */
public interface IGreetingCardsRecordService {

    /**
     * 赠送贺卡记录列表
     *
     * @author DEREK
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<GreetingCardsRecordListedVo>
     */
    PageResult<GreetingCardsRecordListedVo> list(PageValidate pageValidate, GreetingCardsRecordSearchValidate searchValidate);

    /**
     * 赠送贺卡记录详情
     *
     * @author DEREK
     * @param id 主键ID
     * @return GreetingCardsRecordDetailVo
     */
    GreetingCardsRecordDetailVo detail(Integer id);

    /**
     * 赠送贺卡记录新增
     *
     * @author DEREK
     * @param createValidate 参数
     */
    void add(GreetingCardsRecordCreateValidate createValidate);

    /**
     * 赠送贺卡记录编辑
     *
     * @author DEREK
     * @param updateValidate 参数
     */
    void edit(GreetingCardsRecordUpdateValidate updateValidate);

    /**
     * 赠送贺卡记录删除
     *
     * @author DEREK
     * @param id 主键ID
     */
    void del(Integer id);

}
